function [ net ] = learnNN(net,stateFeatures, actions, qualityVal)
%LEARNNN Summary of this function goes here
%   Detailed explanation goes here
%net.trainFcn = 'trainc';
net.inputs{1}.processFcns = {'mapminmax'};
net.trainParam.epochs = 100*size(qualityVal,2); %Maximum number of epochs to train 
net.trainParam.goal = 0.001; %Performance goal
net.trainParam.max_fail = 1000; %Maximum validation failures
net.trainParam.show = NaN; %Epochs between displays (NaN for no displays)
net.trainParam.showCommandLine = true;%Generate command-line output
net.trainParam.showWindow = true; %Show training GUI
net.trainParam.time = 5;%Maximum time to train in seconds

net = train(net,[stateFeatures;actions],qualityVal);
end

